import request from '@/utils/request'

// 添加面经
export function articleAPI (data) {
  return request({
    method: 'post',
    url: '/admin/interview/create',
    data
  })
}

// 获取单个面经详情做数据回显
export function viewAPI (id) {
  return request({
    method: 'get',
    url: '/admin/interview/show',
    params: {
      id
    }
  })
}

// 更改面经数据
export function updatedAPI (data) {
  return request({
    method: 'put',
    url: '/admin/interview/update',
    data
  })
}

// 删除面经
export function deleteAPI (id) {
  return request({
    method: 'DELETE',
    url: '/admin/interview/remove',
    data: {
      id
    }
  })
}
